<style>
.feature {
	padding: 30px 0;
}
</style>
<div class="panel panel-default" ng-controller="globalConfigCtrl">
	<div class="panel-heading">系统管理 / 系统配置</div>
	<div class="panel-body">
		<toaster-container
			toaster-options="{'position-class': 'toast-top-right', 'close-button':true}"></toaster-container>
		<div class="tab-content"
			ng-init="stats={system:false,config:true, customer:false,logo:false}">
			<ul class="nav nav-tabs">
				<li ng-class="{active:stats.config}"><a href role="tab"
					data-toggle="tab"
					ng-click="stats.system=false;stats.config=true;stats.customer=false;stats.logo=false">系统项设置</a>
				</li>
				<li ng-class="{active:stats.logo}"><a href role="tab"
					data-toggle="tab"
					ng-click="stats.system=false;stats.config=false;stats.customer=false;stats.logo=true">APP安装包配置</a>
				</li>
				<li ng-class="{active:stats.system}"><a href role="tab"
					data-toggle="tab"
					ng-click="stats.system=true;stats.config=false;stats.customer=false;stats.logo=false">系统信息配置</a>
				</li>
<!-- 				<li ng-class="{active:stats.customer}"><a href role="tab"
					data-toggle="tab"
					ng-click="stats.system=false;stats.config=false;stats.customer=true;stats.logo=false">公共乘车协议配置</a>
				</li> -->
			</ul>


			<div class="tab-pane active" id="tab-password" ng-show="stats.config">
				<div class="row feature">
					<div class="col-md-12">
						<form class="form-horizontal" >
							<div class="form-group">
								<label class="col-md-3 control-label" >扫码订票方式选择：</label>
								<div class="col-md-7" style="margin-top: 7px">
									<div class="input-group m-b w-full" >
					                    <label class="i-checks">
							             <input name="flash" value="true" ng-model="flag" type="radio" ng-checked="flashOrder.value=='true'"  ng-click="onoff(flashOrder)">
							             <i></i>
							             扫码快速下单（成功扫描二维码,系统优先推荐近3天最近班次供用户下单订票）
						                </label>
									</div>
									<div class="input-group m-b w-full" >
					                    <label class="i-checks">
							             <input name="flash" value="false" ng-model="flag" type="radio" ng-checked="flashOrder.value=='false'"  ng-click="onoff(flashOrder)">
							             <i></i>
							             扫码选择班次订票（成功扫描二维码,系统搜索可售班次列表供用户下单订票选择）
						                </label>
									</div>
								</div>
							</div>
						</form>
					</div>
					<div class="col-md-12">
						<form class="form-horizontal" role="form" name="myForm">
							<div class="form-group" ng-repeat="each in list">
								<label class="col-md-3 control-label" ng-bind="each.description">
								</label>
								<div class="col-md-4">
									<div class="input-group m-b w-full" ng-if="each.id">
										<input type="text" class="form-control" id=""
											ng-model="each.value" /> <span ng-if="each.type == 2"
											ng-click="del(del,each)" class="input-group-btn"><button
												class="btn btn-default" type="button">
												<i class="glyphicon glyphicon-trash"></i>
											</button></span>
									</div>
								</div>
								<div class="col-md-2">
									<button class="btn btn-primary" ng-click="update(each)" has-authority="SYSTEM_CONFIG_UPDATE">
										更新</button>
									<button class="btn btn-primary" ng-click="reset(each)" has-authority="SYSTEM_CONFIG_UPDATE">
										恢复默认值</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
			<!-- 系统配置end -->


<!-- 			<div class="tab-pane active" id="tab-refund" ng-show="stats.customer">
				<div class="row feature">
					<div class="col-md-12">
						<form name="orderRefundForm"
							class="form-horizontal form-validation" role="form">
							<div class="form-group">
								<div class="col-md-offset-2 col-md-4">
									<button type="button" class="btn btn-primary"
										ng-click="update(customer)" >保存修改</button>
									<button type="button" class="btn btn-primary" ng-click="reset(refund)">恢复默认设置</button>
								</div>
							</div>
							<div class="form-group">
								<label class="col-md-2 control-label"> 乘车协议： </label>
								<div class="col-md-4">
									<textarea class="form-control" rows="5" ng-minlength="3"
										ng-maxlength="1000" ng-model="customer.value"
										style="resize: none" required></textarea>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
			乘车协议end -->

 			<div class="tab-pane active wrapper-md" id="tab-refund" ng-show="stats.logo">
<!--				<div class="row feature">
					<div class="col-md-12">
						<form name="orderRefundForm"
							class="form-horizontal form-validation" role="form">
							<div class="form-group">
								<label class="col-md-3 control-label">logo上传：</label>
								<div class="col-md-4" style="margin-left: 9px">
									<input type="file" class="form-control" placeholder="选择图片文件"
										ng-value="fileToUpload" value="{{fileToUpload}}"
										file-model="fileToUpload"
										set-file-data="fileToUpload = value;">
								</div>
								<button type="button" class="btn btn-primary"
									ng-click="upload(logo)" ng-disabled="mailForm.$invalid">确认上传</button>
							</div>
							<div class="form-group">
								<label class="col-md-3 control-label">当前使用logo预览：</label>
								<div class="col-md-4">
									<div class="bg-white wrapper-sm b-a"
										style="width: 140px; height: 140px">
										<div class="bg-light">
											<img ng-src="{{logo.value}}"
												style="width: 120px; height: 120px" />
										</div>
									</div>
								</div>
							</div>
						</form>
					</div>
				</div>
				LOGO上传end --> 
				<div class="row panel panel-default">
                    <div class="panel-heading font-bold">IOS乘客端</div>				
					<div class="col-md-12 panel-body">
						<form name="orderRefundForm"
							class="form-horizontal form-validation" role="form">
							<div class="form-group">
								<label class="col-md-3 control-label">当前IOS乘客端下载地址：</label>
								<div class="col-md-4" style="margin-left: 9px">
									<input type="text" class="form-control" placeholder="下载地址"
										ng-model="iosUrl.value"  required />
								</div>
								<button type="button" class="btn btn-primary" ng-click="saveAPK(iosUrl)"
                                    ng-disabled="uploading" has-authority="SYSTEM_CONFIG_UPDATE">保存</button>
							</div>
							<div class="form-group">
								<label class="col-md-3 control-label">默认IOS乘客端下载地址：</label>
								<div class="col-md-4" style="margin-left: 9px">
									<input type="text" class="form-control" placeholder="下载地址"
										ng-model="iosUrl.defaultValue"  readonly="readonly"/>
								</div>
								<p>该地址默认下载IOS乘客端最新版本。</p>
							</div>
							<div class="form-group">
								<label class="col-md-3 control-label">版本信息：</label>
								<div class="col-md-4" style="margin-left: 9px">
								  <input type="text" class="form-control" placeholder="版本信息"  ng-model="iosVersion.value"  ng-minlength="2" ng-maxlength="1000"  required />
								</div>
								<button type="button" class="btn btn-primary" ng-click="update(iosVersion)" has-authority="SYSTEM_CONFIG_UPDATE">保存修改</button>
							</div>
							<div class="form-group">
								<label class="col-md-3 control-label">二维码：</label>
								<div class="col-md-2" >
								 	<div class="bg-white wrapper-sm b-a">
							            <div class="bg-light">
								         <img ng-src="img/iosPassenger.png" style="width: 100%;height: 100%"/>
							            </div>
						            </div>
								</div>
						            <div style="margin-top: 100px">
						               <span>用手机浏览器扫码左侧二维码，即可下载IOS乘客端最新版本。</span>
						            </div>
							</div>
						</form>
					</div>
				</div><!-- IOS乘客端end -->				
				<div class="row panel panel-default">
				   <div class="panel-heading font-bold">Android乘客端</div>
					<div class="col-md-12 panel-body">
						<form name="orderRefundForm"
							class="form-horizontal form-validation" role="form">
							<div class="form-group">
								<label class="col-md-3 control-label">Android乘客端APP上传：</label>
								<div class="col-md-4" style="margin-left: 9px">
									<input type="file" class="form-control" placeholder="选择apk文件"
										ng-value="fileToUpload" value="{{fileToUpload}}"
										file-model="fileToUpload"
										set-file-data="fileToUpload = value;">
								</div>
								<button type="button" class="btn btn-primary"
									ng-click="uploadAPK(apk)"  has-authority="SYSTEM_CONFIG_UPDATE"  ng-disabled="uploading">确认</button>
							</div>
							<div class="form-group">
								<label class="col-md-3 control-label">当前乘客端APP下载地址：</label>
								<div class="col-md-4" style="margin-left: 9px">
									<input type="text" class="form-control" placeholder="下载地址"
										ng-model="apk.value"  required />
								</div>
								<button type="button" class="btn btn-primary" ng-click="saveAPK(apk)"
                                    ng-disabled="uploading" has-authority="SYSTEM_CONFIG_UPDATE">保存</button>
							</div>
							<div class="form-group">
								<label class="col-md-3 control-label">默认乘客端APP下载地址：</label>
								<div class="col-md-4" style="margin-left: 9px">
									<input type="text" class="form-control" placeholder="下载地址"
										ng-model="apk.defaultValue"  readonly="readonly"/>
								</div>
								<p>该地址默认下载Android乘客端最新版本。</p>
							</div>
							<div class="form-group">
								<label class="col-md-3 control-label">版本信息：</label>
								<div class="col-md-4" style="margin-left: 9px">
								  <input type="text" class="form-control" placeholder="版本信息"  ng-model="versions.value"  ng-minlength="2" ng-maxlength="1000"  required />
								</div>
								<button type="button" class="btn btn-primary" ng-click="update(versions)" has-authority="SYSTEM_CONFIG_UPDATE">保存修改</button>
							</div>
							<div class="form-group">
								<label class="col-md-3 control-label">二维码：</label>
								<div class="col-md-2" >
								 	<div class="bg-white wrapper-sm b-a">
							            <div class="bg-light">
								         <img ng-src="img/passenger.png" style="width: 100%;height: 100%"/>
							            </div>
						            </div>
								</div>
						            <div style="margin-top: 100px">
						               <span>用手机浏览器扫码左侧二维码，即可下载Android乘客端最新版本。</span>
						            </div>
							</div>
						</form>
					</div>
				</div><!-- 乘客端apk上传end -->
				<div class="row  panel panel-default">
				    <div class="panel-heading font-bold">Android司机端</div>
					<div class="col-md-12 panel-body">
						<form name="orderRefundForm"
							class="form-horizontal form-validation" role="form">
							<div class="form-group">
								<label class="col-md-3 control-label">Android司机端APP上传：</label>
								<div class="col-md-4" style="margin-left: 9px">
									<input type="file" class="form-control" placeholder="选择apk文件"
										ng-value="fileToUpload" value="{{fileToUpload}}"
										file-model="fileToUpload"
										set-file-data="fileToUpload = value;">
								</div>
								<button type="button" class="btn btn-primary"
									ng-click="uploadAPK(driver)" has-authority="SYSTEM_CONFIG_UPDATE" ng-disabled="uploading">确认</button>
							</div>
							<div class="form-group">
								<label class="col-md-3 control-label">当前司机端APP下载地址：</label>
								<div class="col-md-4" style="margin-left: 9px">
									<input type="text" class="form-control" placeholder="下载地址"
										ng-model="driver.value"  required />
								</div>
								<button type="button" class="btn btn-primary" ng-click="saveAPK(driver)"
                                   ng-disabled="uploading"  has-authority="SYSTEM_CONFIG_UPDATE">保存</button>
							</div>
							<div class="form-group">
								<label class="col-md-3 control-label">默认司机端APP下载地址：</label>
								<div class="col-md-4" style="margin-left: 9px">
									<input type="text" class="form-control" placeholder="下载地址"
										ng-model="driver.defaultValue"  readonly="readonly"/>
								</div>
								<p>该地址默认下载Android司机端最新版本。</p>
							</div>
							<div class="form-group">
								<label class="col-md-3 control-label">版本信息：</label>
								<div class="col-md-4" style="margin-left: 9px">
								  <input type="text" class="form-control" placeholder="版本信息"  ng-model="driversions.value"  ng-minlength="2" ng-maxlength="1000"  required />
								</div>
								<button type="button" class="btn btn-primary" ng-click="update(driversions)" has-authority="SYSTEM_CONFIG_UPDATE">保存修改</button>
							</div>
							<div class="form-group">
								<label class="col-md-3 control-label">二维码：</label>
								<div class="col-md-2" >
								 	<div class="bg-white wrapper-sm b-a">
							            <div class="bg-light">
								         <img ng-src="img/driver.png" style="width: 100%;height: 100%"/>
							            </div>
						            </div>
								</div>
						            <div style="margin-top: 100px">
						               <span>用手机浏览器扫码左侧二维码，即可下载Android司机端最新版本。</span>
						            </div>
							</div>
						</form>
					</div>
				</div><!-- 司机端apk上传end -->
			</div><!-- 系统文件上传end -->

			<div class="tab-pane active" id="tab-refund" ng-show="stats.system">
<!-- 				<div class="row feature">
					<div class="col-md-12">
						<form name="orderRefundForm" class="form-horizontal form-validation" role="form">
							<div class="form-group">
								<div class="col-md-offset-2 col-md-4">
									<button type="button" class="btn btn-primary" ng-click="update(userInform)" >保存修改</button>
									<button type="button" class="btn btn-primary" ng-click="reset(refund)">恢复默认设置</button>
								</div>
							</div>
							<div class="form-group">
								<label class="col-md-2 control-label">
									用户需知：
								</label>
								<div class="col-md-4">
									<textarea class="form-control" rows="5" ng-minlength="3" ng-maxlength="1000" ng-model="userInform.value" style="resize:none" required></textarea>
								</div>
							</div>
						</form>
					</div>
				</div>用户须知end -->
				<div class="row feature">
					<div class="col-md-12">
						<form name="orderRefundForm" class="form-horizontal form-validation" role="form">
							<div class="form-group">
								<div class="col-md-offset-2 col-md-4">
									<button type="button" class="btn btn-primary" ng-click="update(aboutUs)"   has-authority="SYSTEM_CONFIG_UPDATE">保存修改</button>
									<!-- <button type="button" class="btn btn-primary" ng-click="reset(refund)">恢复默认设置</button> -->
								</div>
							</div>
							<div class="form-group">
								<label class="col-md-2 control-label">
									关于我们：
								</label>
								<div class="col-md-4">
									<textarea class="form-control" rows="10" ng-minlength="10" ng-maxlength="1000" ng-model="aboutUs.value" style="resize:none" required></textarea>
								</div>
							</div>
						</form>
					</div>
				</div><!-- 关于我们end -->
				<div class="row feature">
					<div class="col-md-12">
						<form name="orderRefundForm" class="form-horizontal form-validation" role="form">
							<div class="form-group">
								<div class="col-md-offset-2 col-md-4">
									<button type="button" class="btn btn-primary" ng-click="update(help)" has-authority="SYSTEM_CONFIG_UPDATE">保存修改</button>
									<!-- <button type="button" class="btn btn-primary" ng-click="reset(refund)">恢复默认设置</button> -->
								</div>
							</div>
							<div class="form-group">
								<label class="col-md-2 control-label">
									帮助中心：
								</label>
								<div class="col-md-4">
									<textarea class="form-control" rows="10" ng-minlength="10" ng-maxlength="800" ng-model="help.value" style="resize:none" required></textarea>
								</div>
							</div>
						</form>
					</div>
				</div><!-- 帮助中心end -->
				<div class="row feature">
					<div class="col-md-12">
						<form name="orderRefundForm" class="form-horizontal form-validation" role="form">
							<div class="form-group">
								<div class="col-md-offset-2 col-md-4">
									<button type="button" class="btn btn-primary" ng-click="update(phone)" has-authority="SYSTEM_CONFIG_UPDATE">保存修改</button>
									<!-- <button type="button" class="btn btn-primary" ng-click="reset(refund)">恢复默认设置</button> -->
								</div>
							</div>
							<div class="form-group">
								<label class="col-md-2 control-label">
									客服电话：
								</label>
								<div class="col-md-4">
									<textarea class="form-control" rows="5" ng-minlength="3" ng-maxlength="1000" ng-model="phone.value" style="resize:none" required></textarea>
								</div>
							</div>
						</form>
					</div>
				</div><!-- 客服电话end -->
			</div>	<!-- 系统信息配置end -->
		</div>
		<!-- tab-content -->
	</div>
	<!-- panel-body -->
</div>
<!-- panel -->


